#include<bits/stdc++.h>
using namespace std;
const int N=1e5+10;
map<int,int> h;
int a[N];
int n,t,pos;
bool change=true;
int main(){
    ios::sync_with_stdio();
    cin.tie(),cout.tie();
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>t;
        h[t]++;
    }
    for(auto v:h)  a[++pos]=v.second;
    for(int i=1;i<n;i++)
        if(a[i+1]<a[i]) a[i+1]+=a[i]-a[i+1];
    cout<<a[n];
}



